<%@page import="com.user.entity.dto.TeacherDTO"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>学校在线考试系统 -- 教师端</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.css" rel="stylesheet">
	<link href="css/bootstrap-table.css" rel="stylesheet">
	<link href="css/mystyle.css" rel="stylesheet">
	<link href="css/test.css" rel="stylesheet">
	<link href="css/bootstrap-select.min.css" rel="stylesheet">
	<link href="css/mgr-style.css" rel="stylesheet">
	<style type="text/css">
        .toolbar {
            border: 1px solid #ccc;
        }
        .text {
            border: 1px solid #ccc;
            height: auto;
        }
    </style>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link href="css/font-awesome.min.css" rel="stylesheet">
<%!TeacherDTO teacher = new TeacherDTO(); %>
<%if(session.getAttribute("teacher")==null){
	response.sendRedirect("tch_login");
} else{
	teacher = (TeacherDTO)session.getAttribute("teacher");
}%>
  </head>
  <body>
	<nav class="navbar navbar-default" role="navigation">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
						data-target="#example-navbar-collapse">
					<span class="sr-only">切换导航</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<div class="navbar-brand">学校在线考试系统 -- 教师端</div>
			</div>
			<div class="collapse navbar-collapse" id="example-navbar-collapse">
				<ul class="nav navbar-nav  navbar-right">
		            <li class="dropdown">
		                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
		                   	 <i class="fa fa-user-circle-o"></i>&nbsp;教师：<%=teacher.getName() %><span></span><b class="caret"></b>
		                </a>
		                <ul class="dropdown-menu">
		                    <li><a href="/exam/mgr_updatePwd">修改密码</a></li>
		                    <li><a href="/exam/teacher/logout">注销</a></li>
		                </ul>
		            </li>
		        </ul>
			</div>
	</nav>
		<div class="col-sm-2">
			<ul class="list-group">
				<a href="/exam/tch_index" class="list-group-item">主页</a>
			    <a href="/exam/tch_exam" class="list-group-item">课程考试</a>
			    <a href="/exam/tch_paper" class="list-group-item">试卷管理</a>
			    <a class="list-group-item" data-toggle="collapse" href="#collapseThree">
					题库管理<span class="fa fa-angle-right" style="float:right;font-size:25px;"></span>
				</a>
			    <div id="collapseThree" class="panel-collapse collapse in">
					<ul class="list-group">
						<a href="/exam/tch_single" class="list-group-item" style="padding-left:40px;" >单选题</a>
						<a href="/exam/tch_multiple" class="list-group-item" style="padding-left:40px;">多选题</a>
						<a href="/exam/tch_judgment" class="list-group-item" style="padding-left:40px;">判断题</a>
						<a href="/exam/tch_blank" class="list-group-item" style="padding-left:40px;">填空题</a>
						<a href="/exam/tch_explanation" class="list-group-item _active" style="padding-left:40px;">解答题</a>
					</ul>
				</div>
				<a href="/exam/tch_mark" class="list-group-item">
					<span class="badge"></span>
					阅卷
				</a>
				<a href="tch_score" class="list-group-item">学生成绩</a>
			</ul>
		</div>
		
			<div class="col-sm-9">
			<div class="panel panel-default">
			    <div class="panel-heading">
					<h4>
						<font class="fa fa-code">解答题信息</font>
					</h4>
			    </div>
				    <div class="panel-body">
						<!-- 面包屑导航 -->
						<ol class="breadcrumb">
						    <li><a href="tch_index">首页</a></li>
						    <li><a href="tch_explanation">解答题管理</a></li>
						    <li class="active">编辑</li>
						</ol>
						<form class="form-horizontal" role="form" id="explanationForm">
				<input id="id" type="hidden">
				
				<div class="form-group">
					<label for="name" class="col-sm-1 control-label">所属科目</label>
					<div class="col-sm-10">
						
						 <select required name="subjectId" id="slpk" class="selectpicker" data-live-search="true"></select>  
						 
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-sm-1 control-label" >编号</label>
					<div class="col-sm-10">
						<input required="required" type="text" class="form-control" id="num" placeholder="请输入编号" style="border-radius:0;">
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-sm-1 control-label">题干</label>
					<div class="col-sm-10">
						<div id="content-toolbar" class="toolbar">
						</div>
						<div id="content" class="text"> <!--可使用 min-height 实现编辑区域自动增加高度-->
					    </div>
					 </div>
				</div>
				<div class="form-group">
					<label class="col-sm-1 control-label">参考答案</label>
					<div class="col-sm-10">
						<div id="reference-toolbar" class="toolbar">
						</div>
						<div id="reference-content" class="text"> <!--可使用 min-height 实现编辑区域自动增加高度-->
					    </div>
					 </div>
				</div>
				
				<div class="form-group">
					<button type="submit" class="btn btn-info col-sm-offset-10 col-sm-1" id="agreementSub" style="margin-top:30px;">提交</button>
				</div>
			</form>
				 </div>
			</div>
		</div>
		
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-1.12.4.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    
    <script src="js/jquery-form.js"></script>
	<script src="js/bootstrap-table.js"></script>
	<script src="js/bootstrap-table-zh-CN.js"></script>
	<script src="js/bootstrap-select.min.js"></script>
	<script src="js/inputGroup-1.1.js"></script>
	<script src="js/jquery.validate.min.js"></script>
	<script src="js/messages_zh.js"></script>
	<script src="editor/wangEditor.js"></script>
	
	<script src="js/tch/ExplanationFormController.js"></script>
	<script src="js/tch/tch_getTask.js"></script>

  </body>
</html>